package edu.ihs.lhpy.service.impl;

import org.springframework.stereotype.Service;

import edu.ihs.lhpy.base.BaseDaoImpl;
import edu.ihs.lhpy.domain.BaseInfo;
import edu.ihs.lhpy.service.BaseInfoService;

@Service
public class BaseInfoServiceImpl extends BaseDaoImpl<BaseInfo> implements BaseInfoService{

	@Override
	public BaseInfo getByType(String type) {
		System.out.println(type+"=type");
		return (BaseInfo) getSession().createQuery(//
				"FROM BaseInfo b WHERE b.type=? ")//
				.setParameter(0, type)
				.uniqueResult();
	}

	

}
